package com.translator.model;

/**
 * 翻译请求模型类
 * 包含翻译请求的所有必要信息
 */
public class TranslationRequest {
    
    private String sourceText;
    private String sourceLanguage;
    private String targetLanguage;
    
    /**
     * 创建翻译请求
     * 
     * @param sourceText 源文本
     * @param sourceLanguage 源语言
     * @param targetLanguage 目标语言
     */
    public TranslationRequest(String sourceText, String sourceLanguage, String targetLanguage) {
        this.sourceText = sourceText;
        this.sourceLanguage = sourceLanguage;
        this.targetLanguage = targetLanguage;
    }
    
    /**
     * 获取源文本
     * 
     * @return 源文本
     */
    public String getSourceText() {
        return sourceText;
    }
    
    /**
     * 获取源语言
     * 
     * @return 源语言
     */
    public String getSourceLanguage() {
        return sourceLanguage;
    }
    
    /**
     * 获取目标语言
     * 
     * @return 目标语言
     */
    public String getTargetLanguage() {
        return targetLanguage;
    }
    
    @Override
    public String toString() {
        return "TranslationRequest{" +
                "sourceText='" + sourceText + '\'' +
                ", sourceLanguage='" + sourceLanguage + '\'' +
                ", targetLanguage='" + targetLanguage + '\'' +
                '}';
    }
}